<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

	<head>
		<meta charset="UTF-8">
		<title>sinocare</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
		<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
		<link rel="stylesheet" href="../css/font.css">
		<link rel="stylesheet" href="../css/xadmin.css">
		<link rel="stylesheet" href="../css/layself.css" />
		<script src="../js/jquery.min.js"></script>
		<script type="text/javascript" src="../lib/layui/layui.js" charset="utf-8"></script>
		<script type="text/javascript" src="../js/xadmin.js"></script>
		<script src="../js/echarts.min.js"></script>
<script src="../js/dark.js"></script>
<script src="../js/infographic.js"></script></head>
		<!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
		<!--[if lt IE 9]>
      <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
      <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
	</head>

	<body class="layui-anim layui-anim-up">
		<div class="x-nav">
			<span class="layui-breadcrumb">
        <a href="">首页</a>
        <a href="">报表管理</a>
        <a>
          <cite>合格率分析</cite></a>
      </span>
			<a class="layui-btn layui-btn-primary layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
				<i class="layui-icon" style="line-height:38px">ဂ</i></a>
		</div>
		<div class="x-body">
			<xblock>
				<div class="layui-row">
					<form class="layui-form layui-col-md12 x-so">
						

							<div class="layui-inline" style="text-align: center;">
								<label for="L_pass" class="layui-form-label">所属总店</label>
								<div class="layui-input-inline">
									<select name="province" lay-filter="province">
										<option value="">北京同仁堂总店</option>
									</select>
								</div>
							</div>
							<div class="layui-inline">
								<label for="L_pass" class="layui-form-label">	所属分店 </label>
								<div class="layui-input-inline">
									<select name="province" lay-filter="province">
										<option value="">同仁堂分店1</option>
									</select>
							</div>
							</div>
							<div class="layui-inline">
								<label for="L_pass" class="layui-form-label">筛选周期 </label>
								<div class="layui-input-inline">
									<select name="province" lay-filter="province">
										<option value="">近半年</option>
									</select>
								</div>
							</div>
							<br/><br/>
					
					
								
						
					</form>
				</div>
				<div style="margin-left: 900px; margin-top: -50px; float: right;">
<button class="layui-btn" lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
<button class="layui-btn" ><i class="layui-icon"></i>导出报表</button></div>
			</xblock>
			<!--
            进度条
            -->
			<div class="layui-bg-gray" style="height: 450px;" >
				<br />
		<table cellpadding="3" cellspacing="3" style="width: 1100px; height: 400px; margin-left: 100px; " >
			<th colspan="3"><font style="font-size: 20px;">检测项合格率报表（19-11-21至19-11-27）</font></th>
			<tr><td>
				BMI <font color="#077E37"> 0.00% </font> <font style="margin-left: 190px;">0/0人</font>
				<br />
            <div class="layui-progress">
              <div class="layui-progress-bar " lay-percent="20%"></div>
            </div>
        </td><td>血压 <font color="#077E37"> 0.00% </font> <font style="margin-left: 190px;">0/0人</font>
        <div class="layui-progress" >
              <div class="layui-progress-bar " lay-percent="0%"></div>
            </div></td><td>总胆固醇<font color="#077E37"> 0.00% </font> <font style="margin-left: 160px;">0/0人</font><div class="layui-progress">
              <div class="layui-progress-bar " lay-percent="0%"></div>
            </div></td></tr>
			<tr><td>血糖<font color="#077E37"> 0.00% </font> <font style="margin-left: 190px;">0/0人</font><div class="layui-progress">
              <div class="layui-progress-bar " lay-percent="0%"></div>
            </div></td><td>糖化血红蛋白 <font color="#077E37"> 0.00% </font><font style="margin-left: 135px;">0/0人</font> <div class="layui-progress">
              <div class="layui-progress-bar " lay-percent="0%"></div>
            </div></td><td>高密度脂蛋白胆固醇 <font color="#077E37"> 0.00% </font> <font style="margin-left: 90px;">0/0人</font><div class="layui-progress">
              <div class="layui-progress-bar " lay-percent="0%"></div>
            </div></td></tr>
			<tr><td>血酮 <font color="#077E37"> 0.00% </font><font style="margin-left: 190px;">0/0人</font><div class="layui-progress">
              <div class="layui-progress-bar " lay-percent="0%"></div>
            </div> </td><td>低密度脂蛋白胆固醇 <font color="#077E37"> 0.00% </font> <font style="margin-left: 95px;">0/0人</font><div class="layui-progress">
              <div class="layui-progress-bar " lay-percent="0%"></div>
            </div></td><td>总胆高密比值 <font color="#077E37"> 0.00% </font> <font style="margin-left: 130px;">0/0人</font><div class="layui-progress">
              <div class="layui-progress-bar " lay-percent="0%"></div>
            </div></td></tr>
			<tr><td>甘油三脂 <font color="#077E37"> 0.00% </font> <font style="margin-left: 160px;">0/0人</font><div class="layui-progress">
              <div class="layui-progress-bar " lay-percent="0%"></div>
            </div></td><td>血尿酸 <font color="#077E37"> 0.00% </font> <font style="margin-left: 178px;">0/0人</font><div class="layui-progress">
              <div class="layui-progress-bar " lay-percent="0%"></div>
            </div></td><td></td></tr>
		</table>
		 </div >
		 <br />
			<div class="layui-bg-gray">
				  <div id="myChart" style="width: 100%; height: 400px; "></div>
				
			</div>

		</div>
		<script>

			layui.use('laydate', function() {
				var laydate = layui.laydate;

				//执行一个laydate实例
				laydate.render({
					elem: '#start' //指定元素
				});

				//执行一个laydate实例
				laydate.render({
					elem: '#end' //指定元素
				});
			});

			/*用户-停用*/
			function member_stop(obj, id) {
				layer.confirm('确认要停用吗？', function(index) {

					if($(obj).attr('title') == '启用') {

						//发异步把用户状态进行更改
						$(obj).attr('title', '停用')
						$(obj).find('i').html('&#xe62f;');

						$(obj).parents("tr").find(".td-status").find('span').addClass('layui-btn-disabled').html('已停用');
						layer.msg('已停用!', {
							icon: 5,
							time: 1000
						});

					} else {
						$(obj).attr('title', '启用')
						$(obj).find('i').html('&#xe601;');

						$(obj).parents("tr").find(".td-status").find('span').removeClass('layui-btn-disabled').html('已启用');
						layer.msg('已启用!', {
							icon: 5,
							time: 1000
						});
					}

				});
			}

			/*用户-删除*/
			function member_del(obj, id) {
				layer.confirm('确认要删除吗？', function(index) {
					//发异步删除数据
					$(obj).parents("tr").remove();
					layer.msg('已删除!', {
						icon: 1,
						time: 1000
					});
				});
			}

			function delAll(argument) {

				var data = tableCheck.getData();

				layer.confirm('确认要删除吗？' + data, function(index) {
					//捉到所有被选中的，发异步进行删除
					layer.msg('删除成功', {
						icon: 1
					});
					$(".layui-form-checked").not('.header').parents('tr').remove();
				});
			}
		</script>
	</body>

</html>
<script type="text/javascript">

		// 基于准备好的dom，指定样式infographic,初始化echarts实例
		var myChart = echarts.init(document.getElementById('myChart'),
				'infographic');

option = {
    tooltip: {
        trigger: 'axis',
        axisPointer: {
            type: 'cross',
            crossStyle: {
                color: '#999'
            }
        }
    },
    toolbox: {
        feature: {
            dataView: {show: true, readOnly: false},
            magicType: {show: true, type: ['line', 'bar']},
            restore: {show: true},
            saveAsImage: {show: true}
        }
    },
    legend: {
        data:['蒸发量','降水量','平均温度']
    },
    xAxis: [
        {
            type: 'category',
          data: ['BMI','血压','总胆固醇','血糖','糖化血红\n蛋白','高密度脂蛋白\n胆固醇','血硐','低密度脂蛋白\n胆固醇','总胆高密比值','甘油三脂','血尿酸'],
  /*data:[
                    'BMI','\n','血压','\n','总胆','\n固醇','糖化血红','\n蛋白',
                    '高密度脂','\n蛋白胆固醇','血硐','\n','低密度脂','\n蛋白胆固醇','总胆高','\n密比值',
                    '甘油三脂','\n','血尿酸','\n' ],*/
            axisPointer: {
                type: 'shadow'
            }
        }
    ],
    yAxis: [
        {
            type: 'value',
            name: '水量',
            min: 0,
            max: 250,
            interval: 50,
            axisLabel: {
                formatter: '{value} ml'
            }
        },
        {
            type: 'value',
            name: '人数',
            min: 0,
            max: 112,
            interval: 5,
            axisLabel: {
                formatter: '{value} '
            }
        }
    ],
    series: [
        {
            name:'合格',
            type:'bar',
            data:[2.0, 4.9, 7.0, 23.2, 25.6, 76.7, 74, 56, 32.6, 20.0, 6.4]
        },
        {
            name:'不合格',
            type:'bar',
            data:[2.6, 5.9, 9.0, 26.4, 28.7, 70.7,55, 85, 48.7, 18.8, 6.0]
        },
        {
            name:'合格率',
            type:'line',
            yAxisIndex: 1,
            data:[2.0, 2.2, 3.3, 4.5, 6.3, 10.2, 20.3, 23.4, 23.0, 16.5, 12.0]
        }
    ]
};


	<!--使用指定的配置项和数据显示图表-->
		myChart.setOption(option);
</script>
